/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kidIcarus.tools;

import com.kidIcarus.decorator.BoxFactory;
import com.kidIcarus.model.value.Value;
import java.util.List;

/**
 *
 * @author squarezty
 */
public class ValueUtil {
    public double value1(BoxFactory factory){
        List<Value> list=factory.getBoxValueList();
        Value v=list.get(factory.getjBox().getSelectedIndex());
        double d=v.getValue();
        return d;
//        return factory.getBoxValueList().get(factory.getjBox().getSelectedIndex()).getValue();
    }
    public double value2(BoxFactory factory){
        
        return 0.0;
    }
}